package controller

import (
	"github.com/gin-gonic/gin"
	"net/http"
	)

func ErrJsonRes(code int, msg string, c *gin.Context) {
	c.JSON(http.StatusOK, gin.H{
		"code": code,
		"msg":  msg,
	})
}

func OKJsonRes(data gin.H, c *gin.Context) {
	c.JSON(http.StatusOK, gin.H{
		"code": 1000,
		"msg":  "ok",
		"data": data,
	})
}
